------------------------------ Cut here ------------------------------
>From rowland.carson@bt-sys.bt.co.uk Wed Nov 1 06:22:44 PST 1995
Received: from lionfish.rdatasys.com (uucp@lionfish.rdatasys.com [198.232.168.1]) by amberjack.rdatasys.com (8.6.12/8.6.12) with ESMTP id GAA18550 for <think-c@rdatasys.com>; Wed, 1 Nov 1995 06:22:39 -0800
Received: (from uucp@localhost) by lionfish.rdatasys.com (8.6.9/8.6.10) id GAA17270 for <think-c@rdatasys.com>; Wed, 1 Nov 1995 06:22:16 -0800
Received: from zaphod.axion.bt.co.uk(132.146.5.1) by lionfish.rdatasys.com via smap (V1.3)
id sma017260; Wed Nov 1 06:21:58 1995
Received: from roundabout.bt-sys.bt.co.uk by zaphod.axion.bt.co.uk with SMTP (PP); Wed, 1 Nov 1995 14:12:29 +0000
Received: from maczebedee by roundabout.bt-sys.bt.co.uk (8.6.9/BT-SYS-8.6.9) id OAA09816; Wed, 1 Nov 1995 14:10:37 GMT
I've got a question about reading Char strings into a struct from a bianary
file.
the first string gets read in correctly then the rest
is pretty much garbage.
>From talek@mail.coretech.com Wed Nov 1 18:45:42 PST 1995
Received: from lionfish.rdatasys.com (uucp@lionfish.rdatasys.com [198.232.168.1]) by amberjack.rdatasys.com (8.6.12/8.6.12) with ESMTP id SAA26638 for <think-c@rdatasys.com>; Wed, 1 Nov 1995 18:45:41 -0800
Received: (from uucp@localhost) by lionfish.rdatasys.com (8.6.9/8.6.10) id SAA14712 for <think-c@rdatasys.com>; Wed, 1 Nov 1995 18:45:39 -0800
Received: from mail.coretech.com(156.46.120.21) by lionfish.rdatasys.com via smap (V1.3)
id sma014707; Wed Nov 1 18:45:21 1995
Received: from [156.46.120.100] by mail.coretech.com
with SMTP (Apple Internet Mail Server 1.0); Wed, 1 Nov 1995 21:51:21 +0000
I was just curious: what is the best way to have two things done at once in
an event loop. What I mean is, if I have a lot of on screen updating that
must be flicker free and and a farely decent clip, I am currently updating
by using what I call a 2/3. This means I have a global Boolean that I am
switching on and off, when it is off it redraws the screen, when on, it
processes an event, which if is a null event, updAtes the screen again,
therefor getting at most 2/2 or 1/2 refress per 'loop'. I have set the
sleep time on my WaitNextEvent to 0 but I still want more speed per event
call. Yes I could use a 1 in 3, but their MUST be an easier way. If you
have no idea what I am talking about or have the solution, please e-mail me
for clarification and or the answer. Thanx in advance.
-Jeff Derstadt
talek@mail.coretech.com
>From nagel@rdatasys.com Thu Nov 2 09:11:12 PST 1995
Received: from rdatasys.com (nagel@amberjack.rdatasys.com [198.137.184.7]) by amberjack.rdatasys.com (8.6.12/8.6.12) with ESMTP id JAA08846 for <think-c>; Thu, 2 Nov 1995 09:11:11 -0800
To: think-c@RDataSys.COM
Subject: Re: Parellel Processing
Reply-To: mark.nagel@rdatasys.com
X-Organization: Relational Data Systems, Irvine, CA
X-Phone: (714) 263-3899
In-reply-to: Jeff Derstadt's message of Wed, 01 Nov 1995 18:47:41 PST.
<v02130401acbde01a794f@[156.46.120.100]>
Date: Thu, 02 Nov 1995 09:11:10 -0800
Message-ID: <8839.815332270@rdatasys.com>
From: "Mark D. Nagel" <nagel@rdatasys.com>
On Wed, 01 Nov 1995 18:47:41 PST Jeff Derstadt wrote:
I was just curious: what is the best way to have two things done at once in
an event loop. What I mean is, if I have a lot of on screen updating that
must be flicker free and and a farely decent clip, I am currently updating
by using what I call a 2/3. This means I have a global Boolean that I am
switching on and off, when it is off it redraws the screen, when on, it
processes an event, which if is a null event, updAtes the screen again,
therefor getting at most 2/2 or 1/2 refress per 'loop'. I have set the
sleep time on my WaitNextEvent to 0 but I still want more speed per event
call. Yes I could use a 1 in 3, but their MUST be an easier way. If you
have no idea what I am talking about or have the solution, please e-mail me
for clarification and or the answer. Thanx in advance.
It sounds as though what you really want to do is push the event loop
down a level and do your screen updates at a higher priority. One way
to do this would be something like:
void UpdateLoop()
{
long nextWNE;
nextWNE = TickCount() + 30;
while (!done)
{
DoScreenUpdate();
if (TickCount() > nextWNE)
{
CheckForEvents();
nextWNE = TickCount() + 30;
}
}
}
Note that this is essentially pseudocode and serves simply to
illustrate the point. The value '30' should be a global variable or
constant, depending on whether you want to allow the user to vary its
value to change the speed of the animation. The CheckForEvents()
function should be a normal event poll and dispatch routine without
any of the screen update stuff (except for handling update events, of
course).
Hope this helps...
Mark
>From gbajram0@tiger.gtc.georgetown.ky.us Wed Nov 8 10:05:00 PST 1995
Received: from lionfish.rdatasys.com (uucp@lionfish.rdatasys.com [198.232.168.1]) by amberjack.rdatasys.com (8.6.12/8.6.12) with ESMTP id KAA18379 for <think-c@rdatasys.com>; Wed, 8 Nov 1995 10:04:58 -0800
Received: (from uucp@localhost) by lionfish.rdatasys.com (8.6.9/8.6.10) id KAA16770 for <think-c@rdatasys.com>; Wed, 8 Nov 1995 10:04:57 -0800
Received: from ics.uci.edu(128.195.1.1) by lionfish.rdatasys.com via smap (V1.3)
id sma016768; Wed Nov 8 10:04:46 1995
Received: by q2.ics.uci.edu id aa21014; 8 Nov 95 10:04 PST
Received: from tiger.gtc.georgetown.ky.us by q2.ics.uci.edu id aa20622;
8 Nov 95 10:00 PST
Received: by tiger.gtc.georgetown.ky.us
(1.37.109.16/16.2) id AA263353540; Wed, 8 Nov 1995 12:59:00 -0500
>From kaufman@access.digex.net Sun Nov 12 18:38:14 PST 1995
Received: from lionfish.rdatasys.com (uucp@lionfish.rdatasys.com [198.232.168.1]) by amberjack.rdatasys.com (8.7.1/8.7.1) with SMTP id SAA10978 for <think-c@rdatasys.com>; Sun, 12 Nov 1995 18:38:13 -0800 (PST)
Received: (from uucp@localhost) by lionfish.rdatasys.com (8.6.9/8.6.10) id SAA22627 for <think-c@rdatasys.com>; Sun, 12 Nov 1995 18:38:11 -0800
Received: from access5.digex.net(205.197.245.196) by lionfish.rdatasys.com via smap (V1.3)
id sma022617; Sun Nov 12 18:37:49 1995
Received: from [204.91.1.94] (dcb00094.slip.digex.net [204.91.1.94]) by access5.digex.net (8.6.12/8.6.12) with SMTP id VAA18562 ; for <think-c@rdatasys.com>; Sun, 12 Nov 1995 21:37:24 -0500
Message-Id: <v01510101accc5fe60611@[204.91.1.94]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 12 Nov 1995 21:38:07 -0500
To: think-c@rdatasys.com
From: kaufman@access.digex.net (Kaufman)
Subject: re:GMU Writing - The Faculty
>Date: Wed, 8 Nov 1995 08:29:00 -0500
>From: "mitch (m.a.) brisebois" <zots@bnr.ca>
>Sender: "mitch (m.a.) brisebois" <zots@bnr.ca>
>To: kaufman@access.digex.net
>Subject: re:GMU Writing - The Faculty
>
>Hey Wendi!
>
>Great picture. I suppose I can't submit (for publication
>consideration) my opus, entitled "Hot Babes, a Soliliquy in C minor"??
>
>s'long,
>Mitch
>
_______________________________________________
David D. Kaufman
Cogitative Solutions
(kaufman@access.digex.net)
------------------------------ Cut here ------------------------------